﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IntercoReconciliationReport.aspx.cs"
    Inherits="ConsolidationTool.WebParts.Layouts.CReport.IntercoReconciliationReport"
    DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagName="EntitySelector" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/CommonEntitySelector.ascx" %>
<%@ Register TagName="ExportExcel" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/PublicExportExcel.ascx" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript">
        $(function () {
            $("li.art-tab").click(function () {
                $("li.art-tab").removeClass("art-tab-selected")
                $(this).addClass("art-tab-selected");

                $(".art-view").hide();
                $("#" + this.id + "View").show();
            });
        });
    </script>
    <style type="text/css">
        .art-tabcontrol{margin-top:2em;}
        .art-tabcontrol ul { margin:0; padding: 0; }
        .art-tab {    padding: 0 12px;    float: left;    list-style: none;    cursor: pointer;    border: solid #ccc 1px;    border-bottom-width: 0px;}
        .art-tab:hover{ background-color:#D4DEE0;}
        .art-tab-selected {    background-color: #EAF9EA;    color: green;}

        .art-view{ display:none; }
    </style>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div class="fs-webpart-top">
        <RE:EntitySelector ID="commonEntitySelector" runat="server" />
    </div>
    <br />
    <asp:Button ID="GenerateReport" runat="server" Text="Generate Report" OnClick="GenerateReport_Click" />
    <RE:ExportExcel ID="ExportExcel1" runat="server" />
    <br />
    <div class="art-tabcontrol">
        <ul>
            <li id="actual" class="art-tab art-tab-selected" style="border-right:none;">
                <h3>
                    Actual Interco Report
                </h3>
            </li>
            <li id="budget" class="art-tab">
                <h3>
                    Budget Interco Report
                </h3>
            </li>
        </ul>
    </div>
    <div style=" clear:both;">
    </div>
    <div id="actualView" class="art-view" style=" display:block;">
    <asp:GridView runat="server" ID="gvActualIntercoReport" CssClass="commontable" name="Actual Interco Reconciliation" /> 
    </div>
    <div id="budgetView" class="art-view">
    <asp:GridView runat="server" ID="gvBudgetIntercoReport" CssClass="commontable" name="Budget Interco Reconciliation" />
    </div>
    <br />
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Interco Reconciliation Report
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Interco Reconciliation Report
</asp:Content>
